package chapter11.exercise.test27;

import java.util.ArrayList;
import java.util.List;
import java.util.Queue;

public class Test2 {
    public Queue<Command> add(Queue<Command> queue, Command com) {
        queue.offer(com);
        return queue;
    }

    @SuppressWarnings({"rawtypes", "unchecked"})
    public static void main(String[] args) {
        List list = new ArrayList<>();
        list.add(1);
        list.add(2);
        list.add(3);
        list.add(4);
        list.add(5);
        list.add(6);
        list.remove(3);
        System.out.println(list);
    }
}
